import { Radio as AntdRadio, RadioProps, RadioGroupProps } from 'antd';

import '../styles/index.css';

import { cn } from '@/utils/cn-merge';

interface CustomRadioProps extends RadioProps {
  className?: string;
}

export const Radio = ({ className, ...props }: CustomRadioProps) => {
  return <AntdRadio className={cn('rg-radio', className)} {...props} />;
};

export const RadioGroup = ({ className, ...props }: RadioGroupProps) => {
  return <AntdRadio.Group className={cn('rg-radio-group', className)} {...props} />;
};
